package com.iran.decorator.example;

public class Test {
    public static void main(String[] args) {
        Person person1 = new Person("刘力安", 25);
        RealizeComponent realizeComponent = new RealizeComponent();
        DecoratorWearingOthers decoratorWearingOthers = new DecoratorWearingOthers();

        decoratorWearingOthers.setDecorateComponent(realizeComponent);
        decoratorWearingOthers.wearing(person1);
    }
}
